package com.exam.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author XiaoKai
 * @since 2021-07-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("exam_question")
@ApiModel(value="Question对象", description="")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "题目的主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "题目标题")
    private String questionTitle;

    @ApiModelProperty(value = "题目内容")
    private String questionContent;

    @ApiModelProperty(value = "题目分值")
    private String questionScore;

    @ApiModelProperty(value = "1单选2多选3判断4填空5简答题")
    private Integer questionType;

    @ApiModelProperty(value = "题目内容的图片")
    private String questionImage;

    @ApiModelProperty(value = "试卷主键id")
    private Integer paperId;

    @ApiModelProperty(value = "所属题裤的Id")
    private Integer bankId;

    @ApiModelProperty(value = "正确答案")
    private String rightAnswer;

    @ApiModelProperty(value = "题目解析")
    private String analysis;

    @ApiModelProperty(value = "填写答案")
    private String fillAnswer;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "选项")
    @TableField(exist = false)
    private List<Select> questionSelect;

}
